#ifndef __IPC_PTZ_HIK_QUERY_THREAD_INCLUDE__
#define __IPC_PTZ_HIK_QUERY_THREAD_INCLUDE__
#include <QThread>
#include "IPC_Dev.h"

class IPC_PTZ_Hik_Query_Thread :public QThread {
	Q_OBJECT
public:
	IPC_PTZ_Hik_Query_Thread(IPC_DEV* dev , QObject *parent = Q_NULLPTR);
	virtual ~IPC_PTZ_Hik_Query_Thread();
	void Exit();

signals:
	void PTZChanged(float P ,float T ,float Z);
	void FOVChanged(float fHorizontalValue , float fVerticalValue);

private:
	void Hik_QueryLoop();
	void HPWS_QueryLoop();
    void DaHua_QueryLoop();

protected:
	void run();

private:
	IPC_DEV* ipc_dev;
	volatile bool toExit;
	QWaitCondition exitCond;
	QMutex exitMutex;
	PelcoDReader* pelcod_reader;
};


#endif